package com.ygnn.controller;

import com.ygnn.service.WxPayService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import java.util.Map;

/**
 * ClassName:wxPayController
 * Package:com.ygnn.controller
 * Description:
 *
 * @Author: dlh
 * @Creat:2024/10/30-9:43
 */
@Slf4j
@RestController
@Api(value = "微信支付接api", tags = {"微信支付api"})
@RequestMapping("/wx")
public class wxPayController {
    @Resource
    private WxPayService wxPayService;
    @ApiOperation("付款成功通知我")
    @PostMapping("/payNotify")
    private Map payNotify(HttpServletRequest request)  {
        return wxPayService.payNotify(request);
    }
}
